package net.exprom.qe;

/**
 * ...
 * @author Gilles Coomans
 */

class QEMacro 
{

	public function new() 
	{
		
	}
	inline static public function macroCall(MACRO:String, args:Array<Dynamic> = null):Dynamic
	{
			var parsed = MACRO.split(".");
			
			switch(MACRO)
			{
				case "Date" : return function(context) { return Date.now(); } 
				case "Math" : return function(context, args) { return Math.cos(args[0]); } 
			}
		}

	}
}